$OpenBSD: patch-src_util_cpp,v 1.3 2015/05/21 15:06:09 czarkoff Exp $
--- src/util.cpp.orig	Sun May 10 22:57:49 2015
+++ src/util.cpp	Wed May 20 16:31:35 2015
@@ -27,7 +27,7 @@
 #include <cmake.h>
 // If <iostream> is included, put it after <stdio.h>, because it includes
 // <stdio.h>, and therefore would ignore the _WITH_GETLINE.
-#ifdef FREEBSD
+#if defined (FREEBSD) || defined (OPENBSD)
 #define _WITH_GETLINE
 #endif
 #include <stdio.h>
@@ -185,7 +185,7 @@ int autoComplete (
 // representation is always lowercase anyway.
 // For the implementation details, refer to
 // http://svnweb.freebsd.org/base/head/sys/kern/kern_uuid.c
-#ifdef FREEBSD
+#if defined (FREEBSD) || defined (OPENBSD)
 const std::string uuid ()
 {
   uuid_t id;
